import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './assets/css/global.css'
import './plugins/element.js'
// 引入axios请求包
import axios from 'axios'
Vue.prototype.$http = axios
axios.defaults.baseURL = 'http://159.75.205.204:8882/' // 配置默认请求路径
axios.interceptors.request.use(config => {// 请求默认携带token
  config.headers.access_token = window.sessionStorage.getItem('token')
  return config
})
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
